package com.nari.ncps.screen.utils;

import org.springframework.stereotype.Component;

@Component
public class GlobalDataSourceState {

    // 默认数据源
    private volatile String currentDataSource = "primary";

    public String getCurrentDataSource() {
        return currentDataSource;
    }

    public void setCurrentDataSource(String dataSource) {
        this.currentDataSource = dataSource;
    }

}
